package routers

import (
	"2302a_book/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/list", &controllers.BookController{}, "POST:List")
	beego.Router("/update", &controllers.BookController{}, "POST:Update")
	beego.Router("/del", &controllers.BookController{}, "POST:Del")
}
